/*

Copyright 2007 Renaun Erickson (http://renaun.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@ignore
*/
package asfslib.api.familytree.v1
{

/**
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="place">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="normalized" type="{http://api.familysearch.org/familytree/v1}normalizedPlace" minOccurs="0"/>
 *         &lt;element name="original" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
public class Place 
{
    //----------------------------------
    //  normalized
    //----------------------------------

    /**
     *  @private
     *  Storage for the normalized property.
     */
    private var _normalized:NormalizedPlace;

    /**
     *  The normalized property
     *
     *  @default 
     */
    public function get normalized():NormalizedPlace
    {
        return _normalized;
    }

    /**
     *  @private
     */
    public function set normalized(value:NormalizedPlace):void
    {
        _normalized = value;
    }


    //----------------------------------
    //  original
    //----------------------------------

    /**
     *  @private
     *  Storage for the original property.
     */
    private var _original:String = "";

    /**
     *  The original property
     *
     *  @default  = ""
     */
    public function get original():String
    {
        return _original;
    }

    /**
     *  @private
     */
    public function set original(value:String):void
    {
        _original = value;
    }

    //----------------------------------
    //
    //  Methods
    //
    //----------------------------------
	
	/**
	 * 	Make a clone of this instance
	 */
    public function clone():Place 
    {
    	var newNormalized:NormalizedPlace = null;
        if (normalized != null) {
            newNormalized = normalized.clone();
        }
        var clone:Place = new Place();
        clone.normalized = newNormalized;
        clone.original = original;
        return clone;
    }

}
}
